//-----------------------------------------------------------------------------
// File: Label.cs
//
// Copyright (c) Dmitry Shuklin. All rights reserved.
//-----------------------------------------------------------------------------
using System;

namespace Cerebrum.Direct3D.Forms
{
	/// <summary>
	/// Summary description for Label.
	/// </summary>
	public class Label : Cerebrum.Direct3D.Forms.Control 
	{
		public Label()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		protected Cerebrum.Direct3D.Drawing.Font m_Font = null;
		[System.ComponentModel.DefaultValue(null)]
		public Cerebrum.Direct3D.Drawing.Font Font
		{
			get
			{
				return m_Font;
			}
			set
			{
				m_Font = value;
			}
		}

		protected override void OnRenderScene(RenderEventArgs e)
		{
			this.m_Font.DrawText(this.m_Text, this.SurfaceRectangle, this.m_Z, Microsoft.DirectX.Direct3D.DrawTextFormat.Left, this.m_ForeColor);

			base.OnRenderScene (e);
		}

	}
}
